import http from "@/utils/http";

/**
 * @description: 根据id获得商品详情
 * @param {*} data 分类id
 * @return {*}
 */
export function getDetail(data){
    return http.post('/goods/detail',data);
}

/**
 * 获取热榜商品
 * @param data { id, type }
 */
export const getHotGoodsAPI = (data) => {
    return http.post('/goods/hotGoods',data);
}